package com.yidu.best.TA.Statistics.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yidu.best.TA.Statistics.dao.StatisticsDao;
import com.yidu.best.TA.Statistics.domain.Statistics;
import com.yidu.best.TA.Statistics.service.StatisticsService;

@Service
public class StatisticsServiceImpl implements StatisticsService{
	
	@Autowired
	private StatisticsDao statisticsDao;
	
	@Override
	public Map<String, Object> selectfundVal(String fundId) {
		Map<String, Object> map = new HashMap<String, Object>();
		List<Statistics> selectStatistics = statisticsDao.findAll(fundId);
		map.put("data", selectStatistics);
		map.put("msg", "");
		map.put("code", 0);
		return map;
	}
	
	

}
